package pe.edu.upc.xcode.food.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.edu.upc.xcode.food.dao.PlatoDAO;
import pe.edu.upc.xcode.food.dao.impl.PlatoDAOImpl;
import pe.edu.upc.xcode.food.domain.Plato;
import pe.edu.upc.xcode.food.service.PlatoService;

@Service
public class PlatoServiceImpl implements PlatoService {

	@Autowired
	private PlatoDAO platoDAO;

	public Integer save(Plato object) {
		platoDAO.save(object);
		return 0;
	}

	public Integer update(Plato object) {
		// TODO Auto-generated method stub
		platoDAO.update(object);
		return 0;
	}

	public Integer detele(Plato object) {
		// TODO Auto-generated method stub
		platoDAO.detele(object);
		return 0;
	}

	public Plato find(Plato object) {
		// TODO Auto-generated method stub
		return platoDAO.find(object);
	}

	public List<Plato> findAll() {
		// TODO Auto-generated method stub
		return platoDAO.findAll();
	}

}
